package org.judo.util;

import java.util.ArrayList;
import java.util.StringTokenizer;

public class Util
{	
	public static String[] split(String param,char ch)
	{
		ArrayList<String> parts = new ArrayList<String>();
		
		StringTokenizer tokens = new StringTokenizer(param,""+ch);
		
		while (tokens.hasMoreElements())
		{
			String next = tokens.nextToken();
			parts.add(next);
		}
		
		String strs[] = new String[parts.size()];
		
		int i = 0;
		
		for (String part:parts)
			strs[i++] = part;
		
		return strs;
	}
	
	public static void out(Object o)
	{
		System.out.println(o);
	}
	
	public static void err(Object o)
	{
		System.out.println(o);
	}
}
